#include<iostream>
using namespace std;

class Person
{
public:
  string m_name;
  Person() {
    m_name = "hh";
  }
  Person* say() {
    cout << "hello" <<endl;
    return this;
  }
  Person* say(int n) {
    cout<< "hello" <<endl;
    cout<< n <<endl;
    return this;
  }
};

class Child : public Person
{
public:
  string m_name;
  Child() {
    m_name = "xhh";
  }
  Child* say() {
    cout << m_name <<endl;
    return this;
  }
};



int main() {
  Child c1;
  cout << c1.say() << endl;
  cout << c1.Person::say() << endl;
  cout << c1.Person::say(1) << endl;
  return 0;
}